package com.young.pattern.simpleFactoryPattern;

import lombok.extern.slf4j.Slf4j;

/**
 * 简单工厂模式:
 * 饼状图具体实现类,充当具体实现类
 *
 */
@Slf4j
public class PieChart implements Chart{
    public PieChart() {
      log.info("饼状图创建了.....");
    }

    @Override
    public void display() {
        log.info("饼状图显示了");
    }
}
